Add full icon mapping table for >4.07 mapsource. From Ken Leidner.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 20 Feb 2003 15:53:34 +0000 (15:53 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 20 Feb 2003 15:53:34 +0000 (15:53 +0000)
gpsbabel/mapsource.c

index 08535e8c85b4b15808825cf898a84e5cb88710a9..1a74779cadb34624240dfb2eabcd0055098c2b57 100644 (file)
@@ -59,17 +59,154 @@ typedef struct icon_mapping {
  * these in.
  */
 static icon_mapping_t icon_table[] = {
+       { 0, "Anchor" },
        { 0, "Marina" },
+       { 1, "Bell" },
+       { 2, "Green Diamond" },
+       { 3, "Red Diamond" },
+       { 4, "Diver Down Flag 1" },
+       { 5, "Diver Down Flag 2" },
        { 6, "Bank" },
        { 6, "ATM" },
-       { 11, "Restaraunt" },
+       { 7, "Fishing Area" },
+       { 8, "Gas Station" },
+       { 9, "Horn" },
+       { 10, "Residence" },
+       { 11, "Restaurant" },
+       { 12, "Light" },
+       { 13, "Bar" },
+       { 14, "Skull and Crossbones" },
+       { 15, "Green Square" },
+       { 16, "Red Square" },
+       { 17, "White buoy" },
        { 18, "Waypoint" },
-       { 150, "Boating" },
+       { 19, "Shipwreck" },
+       { 21, "Man Overboard" },
+       { 22, "Navaid Amber" },
+       { 23, "Navaid Black" },
+       { 24, "Navaid Blue" },
+       { 25, "Navaid Green" },
+       { 26, "Navaid Green/Red" },
+       { 27, "Navaid Green/White" },
+       { 28, "Navaid Orange" },
+       { 29, "Navaid Red" },
+       { 30, "Navaid Red/Green" },
+       { 31, "Navaid Red/White" },
+       { 32, "Navaid Violet" },
+       { 33, "Navaid White" },
+       { 34, "Navaid White/Green" },
+       { 35, "Navaid White/Red" },
+       { 36, "White Dot" },
+       { 37, "Radio Beacon" },
        { 150, "Boat Ramp" },
        { 151, "Campground" },
        { 151, "Camping" },
+       { 152, "Restrooms" },
+       { 153, "Showers" },
+       { 154, "Drinking Water" },
+       { 155, "Telephone" },
+       { 156, "Medical Facility" },
+       { 157, "Information" },
+       { 158, "Parking Area" },
        { 159, "Park" },
+       { 160, "Picnic Area" },
+       { 161, "Scenic Area" },
+       { 162, "Skiing Area" },
+       { 163, "Swimming Area" },
+       { 164, "Dam" },
+       { 165, "Controlled Area" },
+       { 166, "Danger Area" },
+       { 167, "Restricted Area" },
+       { 169, "Ball Park" },
        { 170, "Car" },
+       { 171, "Hunting Area" },
+       { 172, "Shopping Center" },
+       { 173, "Lodging" },
+       { 174, "Mine" },
+       { 175, "Trail Head" },
+       { 176, "Truck Stop" },
+       { 177, "Exit" },
+       { 178, "Flag" },
+       { 179, "Circle with x" },
+       { 8195, "Mile Marker" },
+       { 8196, "TracBack Point" },
+       { 8197, "Golf Course" },
+       { 8198, "City (Small)" },
+       { 8199, "City (Medium)" },
+       { 8200, "City (Large)" },
+       { 8203, "City (Capitol)" },
+       { 8204, "Amusement Park" },
+       { 8205, "Bowling" },
+       { 8206, "Car Rental" },
+       { 8207, "Car Repair" },
+       { 8208, "Fast Food" },
+       { 8209, "Fitness Center" },
+       { 8210, "Movie Theater" },
+       { 8211, "Museum" },
+       { 8212, "Pharmacy" },
+       { 8213, "Pizza" },
+       { 8214, "Post Office" },
+       { 8215, "RV Park" },
+       { 8216, "School" },
+       { 8217, "Stadium" },
+       { 8218, "Department Store" },
+       { 8219, "Zoo" },
+       { 8220, "Convenience Store" },
+       { 8221, "Live Theater" },
+       { 8226, "Scales" },
+       { 8227, "Toll Booth" },
+       { 8233, "Bridge" },
+       { 8234, "Building" },
+       { 8235, "Cemetery" },
+       { 8236, "Church" },
+       { 8237, "Civil" },
+       { 8238, "Crossing" },
+       { 8239, "Ghost Town" },
+       { 8240, "Levee" },
+       { 8241, "Military" },
+       { 8242, "Oil Field" },
+       { 8243, "Tunnel" },
+       { 8244, "Beach" },
+       { 8245, "Forest" },
+       { 8246, "Summit" },
+       { 8255, "Geocache" },
+       { 8256, "Geocache Found" },
+       { 8257, "Contact Smiley" },
+       { 8258, "Contact Ball Cap" },
+       { 8259, "Contact Big Ears" },
+       { 8260, "Contact Spike" },
+       { 8261, "Contact Goatee" },
+       { 8262, "Contact Afro" },
+       { 8263, "Contact Dreadlocks" },
+       { 8264, "Contact Female 1" },
+       { 8265, "Contact Female 2" },
+       { 8266, "Contact Female 3" },
+       { 8267, "Contact Ranger" },
+       { 8268, "Contact Kung-Fu" },
+       { 8269, "Contact Sumo" },
+       { 8270, "Contact Pirate" },
+       { 8271, "Contact Biker" },
+       { 8272, "Contact Alien" },
+       { 8273, "Contact Bug" },
+       { 8274, "Contact Cat" },
+       { 8275, "Contact Dog" },
+       { 8276, "Contact Pig" },
+       { 16384, "Airport" },
+       { 16388, "Heliport" },
+       { 16389, "Private Field" },
+       { 16390, "Soft Field" },
+       { 16391, "Tall Tower" },
+       { 16392, "Short Tower" },
+       { 16393, "Glider Area" },
+       { 16394, "Ultralight Area" },
+       { 16395, "Parachute Area" },
+       { 16402, "Seaplane Base" },
+
+#if SOMEONE_ELSE
+       { 1, "Virtual cache"},
+       { 2, "Micro-Cache"},
+       { 3, "Multi-Cache"},
+#endif 
        { -1, NULL },
 };
 
@@ -105,7 +242,7 @@ mps_find_icon_number_from_desc(const char *desc)
                return def_icon;
 
        for (i = icon_table; i->icon; i++) {
-               if (desc == i->icon) {
+               if (case_ignore_strcmp(desc,i->icon) == 0) {
                        return i->symnum;
                }
        }